package com.mike.mybatis;

import org.apache.ibatis.session.SqlSession;

public class DBBuilder implements IEntityCriteria<DBBuilder>, IDDD{
    private Class clazz;
    public static final DBBuilder build(Class clazz) {
        return new DBBuilder(clazz);
    }

    public DBBuilder(Class clazz) {
        this.clazz = clazz;
    }

    @Override
    public <T> T one() {
        SqlBaseDao<T> sqlBaseDao = DBSql.build(this.getClazz());
        return sqlBaseDao.one();
    }

    public Class getClazz() {
        return clazz;
    }

    public void setClazz(Class clazz) {
        this.clazz = clazz;
    }

    @Override
    public DBBuilder eq(String var1, Object var2) {
        return null;
    }
}
